load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

bzl_library(
    name = "cmake_build",
    srcs = ["cmake_build.bzl"],
    visibility = ["//visibility:public"],
    deps = ["//foreign_cc:defs"],
)

bzl_library(
    name = "make_build",
    srcs = ["make_build.bzl"],
    visibility = ["//visibility:public"],
    deps = [
        "//foreign_cc/built_tools/private:built_tools_framework",
        "//foreign_cc/private:cc_toolchain_util",
        "//foreign_cc/private/framework:platform",
        "@bazel_tools//tools/cpp:toolchain_utils.bzl",
    ],
)

bzl_library(
    name = "meson_build",
    srcs = ["meson_build.bzl"],
    visibility = ["//visibility:public"],
    deps = ["@rules_python//python:defs_bzl"],
)

bzl_library(
    name = "ninja_build",
    srcs = ["ninja_build.bzl"],
    visibility = ["//visibility:public"],
    deps = [
        "//foreign_cc/built_tools/private:built_tools_framework",
        "//foreign_cc/private/framework:platform",
    ],
)

bzl_library(
    name = "pkgconfig_build",
    srcs = ["pkgconfig_build.bzl"],
    visibility = ["//visibility:public"],
    deps = [
        "//foreign_cc:defs",
        "//foreign_cc/built_tools/private:built_tools_framework",
        "//toolchains/native_tools:tool_access",
    ],
)
